<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>{$pagetitle}</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
  <link rel="stylesheet" href="/static/admin/layui/css/layui.css" media="all">
</head>
<body>

<form action="{:url()}" method="post" class="form-horizontal" onsubmit="return save_form2(this)">
	<input type="hidden" name="pid" value="{$r.pid}">
	<input type="hidden" name="id" value="{$r.id}">
  <div class="layui-form" lay-filter="layuiadmin-app-form-list" id="layuiadmin-app-form-list" style="padding: 20px 30px 0 0;">
    <div class="layui-form-item">
      <label class="layui-form-label">标题</label>
      <div class="layui-input-inline">
        <input type="text" lay-verify="" name="title" value="{$r.title}" autocomplete="off" class="layui-input">
      </div>
    </div>
    <div class="layui-form-item">
      <label class="layui-form-label">排序</label>
      <div class="layui-input-inline">
        <input type="text" lay-verify="required" name="sort" value='{$r.sort}' autocomplete="off" class="layui-input">
      </div>
    </div>
    <div class="layui-form-item">
      <label class="layui-form-label">链接</label>
      <div class="layui-input-inline">
        <input type="text" lay-verify="required" name='name' value="{$r.name}" autocomplete="off" class="layui-input">
      </div>
    </div>
    <div class="layui-form-item">
      <label class="layui-form-label">图标</label>
      <div class="layui-input-inline">
		<input type="text"  name='icon' value="{$r.icon}" autocomplete="off" class="layui-input">
      </div>
		<div class="layui-input-inline layui-btn-container" style="width: auto; height: 35px;">
		  <a href="{:url('icon')}" target="_blank" class="layui-btn layui-btn-primary">
			<i class="layui-icon">&#xe67c;</i>选择图标
		  </a>
		</div>	  
    </div>		
    <div class="layui-form-item">
      <label class="layui-form-label">显示</label>
      <div class="layui-input-inline">
		<input type="checkbox" value="1" name="status" lay-skin="switch" lay-text="显示|隐藏"  {$r["status"]?"checked":""}>
      </div>
    </div>		
	<div class="layui-form-item">
		<div class="layui-input-block">
		  <button class="layui-btn" type="submit" lay-filter="component-form-element">立即提交</button>
		  <button type="reset" class="layui-btn layui-btn-primary close">关闭</button>
		</div>
	</div>
  </div>
</form>
  <script src="/static/admin/layui/layui.js"></script>
  <script src="/static/js/jquery.min.js"></script>    
  <script src="/static/js/globals.js"></script>  
  <script>
  layui.config({
    base: '/static/admin/' //静态资源所在路径
  }).extend({
    index: 'lib/index' //主入口模块
  }).use(['index', 'form'], function(){
    var $ = layui.$
    ,form = layui.form;
  })
  </script>
</body>
</html>